<?php
setlocale (LC_ALL, 'de_DE');

function rss($file)
{
    $rss = simplexml_load_file($file);
    foreach ( $rss->channel->item as $i )
    {
        if ( $i->title == strftime('%A, %d.%m.%Y') )
        {
            $title = $i->title;
            $description = $i->description;
            $description = preg_replace("/\s*<u><\/u><br>\s*<br>/", "", $description);
            $description = preg_replace("/\n\s*/", "", $description);
            $description = str_replace("<u>", "<br /><i>", $description);         
            $description = str_replace("</u>", "</i>", $description); 
            printf("<b>%s</b><br />%s", $title, $description);
            break;
        }
    }
}
?>
